#https://leetcode-cn.com/problems/running-sum-of-1d-array/
#1480. 一维数组的动态和
from typing import List


class Solution:
    def runningSum(self, nums: List[int]) -> List[int]:
        ret=[]
        sum=0
        for _,v in enumerate(nums):
            sum+=v;
            ret.append(sum)
        return sum